package com.bwie.service.impl;

import com.bwie.bean.Cargo;
import com.bwie.bean.Stu;
import com.bwie.bean.User;
import com.bwie.dao.StuDao;
import com.bwie.service.StuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class StuServiceImpl implements StuService {

    @Resource
    private StuDao stuDao;

    @Override
    public List list(Map map) {
        return stuDao.list(map);
    }

    @Override
    public User login(User user) {
        return stuDao.login(user);
    }

    @Override
    public List<Cargo> listc() {
        return stuDao.listc();
    }

    @Override
    public List<User> listu() {
        return stuDao.listu();
    }

    @Override
    public int add(Stu stu) {
        return stuDao.add(stu);
    }

    @Override
    public int updaqx(Integer sid) {
        return stuDao.updaqx(sid);
    }
}




























